<template>
  <div class="mg24_20">
    <ul class="flex">
      <li class="steps" v-for="(item,index) in stepsObj.list" :key="item">
        <div class="nums_contents">
          <span class="nums">{{index+1 }}</span>
          <p :class="[stepsObj.nums==index+1?'active':'','content']">{{ item }}</p>
        </div>
        <div class="hx" v-if="index<stepsObj.list.length-1"></div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
    props:{
      stepsObj:Object
    }
};
</script>

<style lang="scss" scoped>
.mg24_20{
    padding: 24px 32px;
    .steps {
  @include flex(row, center, flex-start);
  .nums_contents{
    @include flex(row, center, flex-start);
    .nums {
    width: 24px;
    height: 24px;
    background: #f0f1f3;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #4f5862;
    text-align: center;
    line-height: 24px;
  }
  .content {
    margin-left: 10px;
    font-size: 14px;
    color: #7E8790;
    line-height: 16px;
    
  }
  .active{
    color: #202933;
  }
  }

  .hx {
    display: inline-block;
    margin:0 16px;
    width: 96px;
    height: 1px;
    background: #b9c0c7;
  }
}
}

</style>